<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 200px;
            height: 200px;
            background: pink;
            margin: 100px auto;
        }
    </style>
</head>
<body>
    <div class="box" onclick="alert(1+1)"></div>
</body>

<!-- <script>alert(33+33);</script>
<script>document.write("asddsf")</script>
<script>console.log("保持原有的数据 sghjahfj")</script> -->
<script src="./js/index.js"></script>
</html>